
async function main() {
    const [deployer1, deployer2] = await ethers.getSigners();
      console.log("Deploying contracts with the account:", deployer2.address);
    const LogicContractName = 'Lock';
    const Logic = await ethers.getContractFactory(LogicContractName);

    const logic = await Logic.deploy();
    await logic.waitForDeployment();
    console.log(LogicContractName, "Logic address:", logic.target);
}

// 处理可能的错误
main()
  .then(() => process.exit(0))
  .catch(error => {
    console.error(error);
    process.exit(1);
  });
